package kr.hkit.PowerJava.chapter07.work;

import java.util.Scanner;

class Screen{
	String str;
	public String getStr(){
		return str;
	}
    public void setStr(String str){
    	this.str = str;
    }
    public void reverse(){
    	for(int i = str.length()-1; i>=0;i--){
    		System.out.print(str.charAt(i));
       	}
    }
}
public class Programming5 {
public static void main(String[] args) {
	Screen sc = new Screen();
	Scanner input = new Scanner(System.in);
	String st;
	System.out.println("문자를 입력하세요. ");
	st=input.next();
	sc.setStr(st);
    sc.reverse();
}
}
